package logic

import (
	"context"
	"gitee.com/jmdvirus/jkgo/jk/jklog"

	"feitianstudyservice/internal/svc"
	"feitianstudyservice/internal/types"

	"github.com/zeromicro/go-zero/core/logx"
)

type FeiTianStudyServiceListLogic struct {
	logx.Logger
	ctx    context.Context
	svcCtx *svc.ServiceContext
}

func NewFeiTianStudyServiceListLogic(ctx context.Context, svcCtx *svc.ServiceContext) *FeiTianStudyServiceListLogic {
	return &FeiTianStudyServiceListLogic{
		Logger: logx.WithContext(ctx),
		ctx:    ctx,
		svcCtx: svcCtx,
	}
}

func (l *FeiTianStudyServiceListLogic) FeiTianStudyServiceList(req *types.EventRequest) (resp *types.EventList, err error) {
	jklog.L().Infoln("req time ", req.Time)

	return GetEventList(*req), nil
}
